package org.intrasearch.core.io;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

public interface ExternalizableProvider<T>
{
    void writeExternal(T object, ObjectOutput output) throws IOException;

    T readExternal(ObjectInput input) throws IOException, ClassNotFoundException;
}
